﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using System.Linq;

//------------------------------------------------------------
// shaco Framework
// Copyright © 2017-2021 chang.liu All rights reserved.
// Feedback: 449612236@qq.com
//------------------------------------------------------------

namespace shacoEditor
{
    public class CreateBehaviourProcessMenu : CreateScriptBaseMenu
    {
        //模板文件名字
        override public string templateFileName { get { return "BehaviourProcessTemplate.cs"; } }

        [MenuItem("Assets/Create/shaco/BehaviourProcessScript", false, (int)ToolsGlobalDefine.ProjectMenuPriority.CREATE_BEHAVIOUR_PROCESS_SCRIPT)]
        static public void CreateBehaviourProcessScript()
        {
            ScriptableObject.CreateInstance<CreateBehaviourProcessMenu>().CreateScriptBaseScript();
        }
    }

    public class CreatePrefabHelper : CreateScriptBaseMenu
    {
        override public string templateFileName { get { return "PrefabTemplate.prefab"; } }
        override public string scriptIconName { get { return "Prefab Icon"; } }

        static public void Create(System.Action<string> callbackEnd)
        {
            ScriptableObject.CreateInstance<CreatePrefabHelper>().CreateScriptBaseScript(callbackEnd);
        }
    }
}